package org.sn.jdish.designmode.builder;

import java.util.LinkedList;
import java.util.List;

import org.sn.jdish.designmode.factory.ShirtProducer;
import org.sn.jdish.designmode.factory.impl.ManShirtProducer;
import org.sn.jdish.designmode.factory.impl.WomanShirtProducer;

/**
 * 建造者模式
 * 
 * @author snzigod@hotmail.com
 *
 */
public class ShirtProducerBuilder {

	private List<ShirtProducer> shirtProducerlist = new LinkedList<ShirtProducer>();

	public void produceManShirtProducer(int count) {
		for (int i = 0; i < count; i++) {
			shirtProducerlist.add(new ManShirtProducer());
		}
	}

	public void produceWomanShirtProducer(int count) {
		for (int i = 0; i < count; i++) {
			shirtProducerlist.add(new WomanShirtProducer());
		}
	}

}
